
	{if $fields['type'] == 'image' && !empty($fields['loc'])}
    </div>
	<div class="weui_cells weui_cells_form" style="background-color:transparent;">
		<div class="weui_cell_bd"><img class="img-radius img-max" src="{php echo tomedia($fields['image'])}" alt=""></div>
    </div>
	<div class="weui_cells weui_cells_form">
		
	{elseif $fields['type'] == 'image'}
        <div class="weui_cell">
            <div class="weui_cell_bd weui_cell_primary">
                <div class="weui_uploader">
                    <div class="weui_uploader_hd weui_cell">
                        <div class="weui_cell_bd weui_cell_primary"><label class="weui_label {if $fields['essential']}weui-start{/if}">{$fields['title']}</label></div>
                        <div class="weui_cell_ft"><small>{$fields['tixing']}</small></div>
                    </div>
                    <div class="weui_uploader_bd">
                        <ul class="weui_uploader_files">   
                            <input type="hidden" name="field_{$fields['refid']}_{$fields['bind']}" accept="image/*" capture="camera" value="" {if $fields['essential']}required tips="{$fields['tixing']}"{/if}>                        
                            <image class="weui_uploader_file weui_uploader_status" onclick="show(this,'show{$fields['refid']}')" id="show{$fields['refid']}" src="{php echo tomedia($fields['image'])}" />
                        </ul>
                        <div class="weui_uploader_input_wrp" data="field_{$fields['refid']}_{$fields['bind']}" onclick="upimg(this,{$fields['refid']})" id="{$fields['refid']}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
	{/if}